package br.com.virtual.base.controller.util;

import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import br.com.virtual.base.enums.LogradouroEnum;

@ManagedBean
@RequestScoped
public class LogradouroMB {

	private List<LogradouroEnum> logradouros;

	public List<LogradouroEnum> getLogradouros() {

		if (this.logradouros == null) {
			this.logradouros = new ArrayList<LogradouroEnum>();
			for (LogradouroEnum l : LogradouroEnum.values()) {
				this.logradouros.add(l);
			}
		}
		return logradouros;
	}

	public void setLogradouros(List<LogradouroEnum> logradouros) {
		this.logradouros = logradouros;
	}
}
